package uva.asimov.asimovtrainner;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
 * 
 * @author Víctor Alonso Egido
 * @author Edgar Guaza Mayo
 * @author Rubén Moya Vázquez*
 *
 */
public class DBHelper extends SQLiteOpenHelper{

	private static final String DB_NAME = "trainDB.sqlite";
	private static final int DB_SCHEME_VERSION = 1;
			
	public DBHelper(Context context){ /*, String name, CursorFactory factory, int version) {*/
		super(context, DB_NAME, null, DB_SCHEME_VERSION);
		// TODO Auto-generated constructor stub
	}
	
	@Override
	public void onCreate(SQLiteDatabase db){
		db.execSQL(DataBaseManager.CREATE_TABLE);
		
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion){
		
	}
	
	public String getDataBaseName(){
		return(DB_NAME);
	}
}
